﻿@model QLBV.Models.Menus

@{
    ViewBag.Title = "Sửa";
    Layout = "~/Views/Shared/_Layout_Manager.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="HdContent">
    <div class="Decription">
        <p>Ở đây bạn có thể sửa Menu</p>
    </div> 
</div>
<div class="MainContent">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

        @Html.HiddenFor(model => model.ID)
        <table>
            <tr>
               <td>
                 <label>Tên menu:</label>
            @Html.EditorFor(model => model.Name)<br />
            <div class="Alert">@Html.ValidationMessageFor(model => model.Name)</div>

               </td>
               <td>
                  <label>Liên kết: </label>
            @Html.EditorFor(model => model.Link)<br />
            <div class="Alert">@Html.ValidationMessageFor(model => model.Link)</div>
               </td>
            </tr>
            <tr>
                   <td>
                    <label>Vị trí:</label>
                         @Html.DropDownListFor(model=>model.Location,new SelectList(new[] {"1","2"}))
                   </td>
                   <td>
                   
                            <label>Menu cha:</label>
            @Html.DropDownListFor(model => model.Parent_ID, (IEnumerable<SelectListItem>)ViewBag.List)
                   </td>
            </tr>
            <tr>
                <td>
                <label>Trạng thái</label>
                     @Html.RadioButtonFor(model => model.Status, "True")  Mở
                     @Html.RadioButtonFor(model => model.Status, "False")  Đóng<br />
                     
                </td>
            </tr>
        </table>
 
        <p>
            <input type="submit" value="Lưu" id="btnSua"/>
        </p>
}
</div>